package com.xh.one2one.knowledgeSystem.service;



import com.xh.one2one.knowledgeSystem.bean.dto.KnowledgeContentDto;
import com.xh.one2one.knowledgeSystem.bean.request.KnowledgeContentImport;
import com.xh.one2one.knowledgeSystem.bean.request.KnowledgeContentRequest;
import com.xh.one2one.knowledgeSystem.model.KnowledgeContent;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

/**
 * <p>
 * 知识元管理的内容 服务类
 * </p>
 *
 * @author tw
 * @since 2020-12-22
 */
public interface IKnowledgeContentService extends IBaseService<KnowledgeContent> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryKnowledgeContentPage(XhPage page, KnowledgeContentRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryKnowledgeContent(KnowledgeContentRequest bean);

    List<KnowledgeContentDto> queryAllContent(KnowledgeContentRequest bean);

    /**
     * 保存内容
     * @param request
     */
    void update(List<KnowledgeContent> request);

    void reSortData(KnowledgeContent knowledgeContent);

    void batchSave(List<KnowledgeContent> knowledgeContent);

    KnowledgeContent importFromWord(KnowledgeContentImport knowledgeContentImport, String rootPath);
}
